echo "Creating admin directories..."
mkdir db
mkdir db/oreto db/registry
mkdir logs

echo "Deploying the node and the registry..."
icegridnode --Ice.Config=config.oreto --daemon --nochdir
sleep 1
icegridadmin --Ice.Config=config.oreto -e "application add oreto.xml"
